package scjp.preparation.designpatterns.singleton;

public class InnerClassLogger {

	private InnerClassLogger() {
	}

	public static class LoggerHolder {
		public static InnerClassLogger logger = new InnerClassLogger();
	}

	public static InnerClassLogger getInstance() {
		return LoggerHolder.logger;
	}

	public void log(String s) {
		System.out.println(s);
		
	}

}
